package com.nz.list01.demo01;

import java.util.ArrayList;
import java.util.List;

public class PersonTest {
    public static void main(String[] args) {
        List<Person> personList = new ArrayList<>();
        personList.add(new Person("熊大", 1, 20));
        personList.add(new Person("熊二", 2, 21));

        for (Person person : personList){
            System.out.println("[{name： " + person.getName() + ", ID: " + person.getId() + ", age： " + person.getAge()+"]}");
        }
    }
}
